
#include <BPickItem>

#include "member_BPickItem.h"

using namespace BWE;

#define member						(*(member_BPickItem*)_ptr)
#define member_allocate()			_ptr = new member_BPickItem(this)
#define member_release()			delete (member_BPickItem*)_ptr

BPickItem::BPickItem()
{
	member_allocate();
}
BPickItem::~BPickItem()
{

}

void BPickItem::setRatio(float ratio)
{
	member.ratio = ratio;
}
float BPickItem::ratio() const
{
	return member.ratio;
}

void BPickItem::setShape(BShape* shape)
{
	member.shape = shape;
}
BShape* BPickItem::shape() const
{
	return member.shape;
}

void BPickItem::setNode(BNode* node)
{
	member.node = node;
}
BNode* BPickItem::node() const
{
	return member.node;
}

void BPickItem::setPoint(const BVector& point)
{
	member.point = point;
}
const BVector& BPickItem::point() const
{
	return member.point;
}

void BPickItem::setNormal(const BVector& normal)
{
	member.normal = normal;
}
const BVector& BPickItem::normal() const
{
	return member.normal;
}

void BPickItem::setIndex(int index)
{
	member.index = index;
}
int BPickItem::index() const
{
	return member.index;
}

void BPickItem::setPrimitive(BPrimitive* primitive)
{
	member.primitive = primitive;
}
BPrimitive* BPickItem::primitive() const
{
	return member.primitive;
}
